import { httpPost, request } from "../service/request";
import { encryptedData } from "../utils";

// 登录
export function login(data: { email: string; pwd: string }) {
  // 加密后的密码，客户端需要用客户端公钥对明文密码进行加密处理
  data.pwd = encryptedData(data.pwd);
  return httpPost('/health/user/v1/login', data)
}

